package com.ruoyi.consume.mapper;

import java.util.List;
import com.ruoyi.consume.domain.GreenhousefilmApplyCon;

/**
 * 棚膜领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-23
 */
public interface GreenhousefilmApplyConMapper
{
    /**
     * 查询棚膜领用
     *
     * @param greenhousefilmApplyId 棚膜领用ID
     * @return 棚膜领用
     */
    public GreenhousefilmApplyCon selectGreenhousefilmApplyById(Long greenhousefilmApplyId);

    /**
     * 查询棚膜领用列表
     *
     * @param greenhousefilmApplyCon 棚膜领用
     * @return 棚膜领用集合
     */
    public List<GreenhousefilmApplyCon> selectGreenhousefilmApplyList(GreenhousefilmApplyCon greenhousefilmApplyCon);

    /**
     * 新增棚膜领用
     *
     * @param greenhousefilmApplyCon 棚膜领用
     * @return 结果
     */
    public int insertGreenhousefilmApply(GreenhousefilmApplyCon greenhousefilmApplyCon);

    /**
     * 修改棚膜领用
     *
     * @param greenhousefilmApplyCon 棚膜领用
     * @return 结果
     */
    public int updateGreenhousefilmApply(GreenhousefilmApplyCon greenhousefilmApplyCon);

    /**
     * 删除棚膜领用
     *
     * @param greenhousefilmApplyId 棚膜领用ID
     * @return 结果
     */
    public int deleteGreenhousefilmApplyById(Long greenhousefilmApplyId);

    /**
     * 批量删除棚膜领用
     *
     * @param greenhousefilmApplyIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteGreenhousefilmApplyByIds(Long[] greenhousefilmApplyIds);

    /**
     * 更新库存量表
     *
     * @param greenhousefilmApplyCon 棚膜领用ID
     * @return 结果
     */
    public int updateGreenhousefilmAmount(GreenhousefilmApplyCon greenhousefilmApplyCon);

    /**
     * 更新领用状态
     *
     * @param greenhousefilmApplyId 棚膜领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long greenhousefilmApplyId);

    /**
     * 退回操作
     *
     * @param greenhousefilmApplyId 棚膜领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long greenhousefilmApplyId);
}
